<?php

namespace Xrfg\Core\Trading\Account\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Xrfg\Core\Trading\Account\Models\Transfer.
 *
 * @property int                                                                                      $id              资金划转ID
 * @property int                                                                                      $user_id         用户ID
 * @property int                                                                                      $coin_id         币种ID
 * @property float                                                                                    $number          划转数量
 * @property string                                                                                   $from_account    划转自
 * @property string                                                                                   $to_account      划转至
 * @property string|null                                                                              $time            时间
 *
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Transfer newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Transfer newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Transfer query()
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Transfer whereCoinId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Transfer whereFromAccount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Transfer whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Transfer whereNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Transfer whereTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Transfer whereToAccount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Account\Models\Transfer whereUserId($value)
 * @mixin \Eloquent
 */
class Transfer extends Model
{
    protected $table = 'trading_transfers';

    /**
     * @var int 类编码
     */
    const CLASS_ID = 3;
    /**
     * @var int 操作编码：转入币币账户（收益币转出）
     */
    const OP_ACCOUNT_IN = 1;
    /**
     * @var int 操作编码：币币账户转出（质押币转入）
     */
    const OP_ACCOUNT_OUT = 2;
    /**
     * @var int 操作编码：转入合约账户
     */
    const OP_SPOT_ACCOUNT_IN = 3;
    /**
     * @var int 操作编码：合约账户转出
     */
    const OP_SPOT_ACCOUNT_OUT = 4;
    /**
     * @var int 操作编码：转入法币账户
     */
    const OP_OTC_ACCOUNT_IN = 5;
    /**
     * @var int 操作编码：法币账户转出（推荐返U）
     */
    const OP_OTC_ACCOUNT_OUT = 6;
    /**
     * @var int 操作编码：转入活动账户（兑换）
     */
    const OP_ACTIVITY_ACCOUNT_IN = 7;
    /**
     * @var int 操作编码：活动账户转出（质押）
     */
    const OP_ACTIVITY_ACCOUNT_OUT = 8;

    public $timestamps = false;
}
